//
// Created by Administrator on 2016/12/5.
//
#include <ZainTL.h>
#include <iostream>
#include <unordered_map>
#include <functional>

using namespace std;
using namespace ZainTL;

class A {
public:
    vector<string *> strings;

    ~A() {
        while (!strings.empty()) {
            auto &cube = strings.back();
            delete (cube);
            cube = nullptr;
            strings.pop_back();
        }
    }
};

void aa(function<void()> done) {
    int i = 1;
    done();
}

void fooo(int fre) {

    cout << rand() % 18 << endl;

    if (fre > 1) {
        aa([=]() {
            fooo(fre - 1);
        });
    }
}

int main() {

    PKGUtil pkgUtil;
    string outpath = pkgUtil.pkg("/media/zain/C86A-FF70/Clion/ZainGL/Rubik/res");
    const char *ZPKPath = outpath.c_str();
    pkgUtil.unpkg(ZPKPath, [=](FileDatas &fileData) {
    });

    getchar();
    return 0;
}
